package com.amigo.online.common.param.result.goods;

import java.util.Comparator;

/**
 * 
 * @version: V 1.0.0
 * @Description: （计算商品全中的对象实体） 
 * @author: zxy  QQ:1363320658
 * @date: 2018年12月26日 下午1:59:40  
 *
 */
public class GoodsCalculationInfo implements Comparator<GoodsCalculationInfo> {
	
	private long id;
	
	private long hot;
	
	private long feedback;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getHot() {
		return hot;
	}

	public void setHot(long hot) {
		this.hot = hot;
	}

	public long getFeedback() {
		return feedback;
	}

	public void setFeedback(long feedback) {
		this.feedback = feedback;
	}

	@Override
	public int compare(GoodsCalculationInfo o1, GoodsCalculationInfo o2) {
		if(o1.getId() > o2.getId()) {
			return 0;
		}
		return 1;	
	}
	
	
}
